package com.friends.common.web.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 方法验权使用（标注哪些角色可使用该方法）
 * 使用方法：
 *        @RoleAuth(roles={"org_admin","org_actmanager","org_financer"})
 *        @RoleAuth(roles={"stu","user"})
 *        @RoleAuth(roles={"stu"})
 *        @RoleAuth(roles={"user"})
 *        @RoleAuth(roles={"yourtour_admin","yourtour_actmanager","yourtour_financer"})
 * Created by xiajiangge on 2017/2/22.
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RoleAuth {

    String[] roles();

}
